package com.springmvc.platform.manage.service;

import com.springmvc.platform.base.service.BaseService;
import com.springmvc.platform.manage.domain.SysResource;
import com.springmvc.platform.result.ExecuteResult;

import java.util.List;
import java.util.Map;

/**
 * @author zhouhong
 * @create 2017/10/8
 * @modify
 */
public interface SysResourceService extends BaseService<SysResource> {
    /**
     * 获取所有资源,并结构化资源数据,首页菜单
     * @return
     */
    Map<Integer,List<SysResource>> queryAllResource();

    /**
     * 资源列表
     * @return
     */
   List<SysResource> queryAllTreeTableResource();

    /**
     * 查询资源数据树
     * @param sysResource
     * @return
     */
    ExecuteResult<List<SysResource>> queryResourceByResource(SysResource sysResource);
}
